package com.JZ.QM.service;

import com.JZ.QM.common.entity.CommentDetailEntity;
import com.JZ.QM.common.entity.UserCommentEntity;
import com.JZ.QM.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.Map;

/**
 * @author: cyc
 * @email cyc@gmail.com
 * @date: 2020/7/6 9:36
 */
public interface UserCommentService extends IService<UserCommentEntity> {
    /**
     * 分页查询
     * @param params
     * @return
     * @throws Exception
     */
    PageUtils queryPage(Map<String, Object> params) throws Exception;

    /**
     * 返回组合的所有评论信息
     * @param comBaseId 组合id
     * @return
     */
    ArrayList<CommentDetailEntity> getAllCommentDetails(Long comBaseId);
}
